Don't bolden pages that any anon/user could see
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 18 Mar 2009 21:13:34 +0000 (21:13 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 18 Mar 2009 21:13:34 +0000 (21:13 +0000)
includes/SpecialPage.php

index ccc9216..31b4383 100644 (file)
@@ -715,7 +715,9 @@ class SpecialPage
         *   pages?
         */
        public function isRestricted() {
-               return $this->mRestriction != '';
+               global $wgGroupPermissions;
+               // DWIM: If all anons can do something, then it is not restricted
+               return $this->mRestriction != '' && empty($wgGroupPermissions['*'][$this->mRestriction]);
        }
 
        /**